#include "Factory.h"

myCFactory::myCFactory(QObject *parent) : QObject(parent)
{
    m_pData = NULL;
}

myCFactory::~myCFactory()
{
    if(m_pData)
    {
        delete m_pData;
        m_pData = NULL;
    }
}

void myCFactory::DeleteData(void)
{
    if(m_pData)
    {
        delete m_pData;
        m_pData = NULL;
    }
}

myCData * myCFactory::CreateData(string strUnitName)
{
    if(m_pData) return m_pData;

    // 动态创建。。。

    return NULL;

}

